home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Python 1.3.3 / Python 133 PPC / Demo / tkinter / guido / imageview.py < prev    next >
Text File  |  1996-05-19  |  205b  |  13 lines

  1. from Tkinter import *
  2. import sys
  3.  
  4. def main():
  5.     filename = sys.argv[1]
  6.     root = Tk()
  7.     img = PhotoImage(file=filename)
  8.     label = Label(root, image=img)
  9.     label.pack()
  10.     root.mainloop()
  11.  
  12. main()
  13.